package com.iedu.demo.lgq.service;

import com.iedu.demo.lgq.entity.ChatMessage;

import java.util.List;
import java.util.Date;

public interface ChatService {
    // 发送消息
    void sendMessage(ChatMessage chatMessage);

    // 获取聊天记录
    List<ChatMessage> getChatHistory(String sender, String receiver);

    // 获取未读消息
    List<ChatMessage> getUnreadMessages(String receiver, Date lastTimestamp);
}